package com.ocm.resource.controller;


/**
 * @program: local-live-admin
 * @description
 * @author: hqy
 * @create: 2021-04-08 21:54
 **/
//@RestController
//@AllArgsConstructor
//@RequestMapping("/oss/endpoint")
//@Api(value = "对象存储端点", tags = "对象存储端点")
//public class MinioController {
//
//    @Resource
//    private MinioService minioService;
//
//
//	@SneakyThrows
//	@PostMapping("/put-file")
//	public R<String> putFile(@RequestParam MultipartFile file) {
//		String originalFilename = file.getOriginalFilename();
//		String fileName= UUID.randomUUID().toString()+originalFilename.substring(originalFilename.lastIndexOf("."));
//		return R.data(fileName);
//	}
//
////    @PostMapping(value = "/uploadImage")
////    public R uploadImage(@RequestBody MultipartFile file) throws Exception {
////        return R.data(minioService.uploadImageSe(file,file.getOriginalFilename(),"公开")) ;
////    }
////
////    @PostMapping(value = "/uploadImageSe")
////    public R uploadImageSe(@RequestBody MultipartFile file, String fileName) throws Exception {
////        return R.data(minioService.uploadImageSe(file,fileName,"公开"));
////    }
//
//
//}
